package test;


import selcoursesys.dao.impl.BaseHibernateDAOImpl;
import selcoursesys.entity.StudentEntity;


/**
 * Created by Lpbdz on 2017/4/9.
 */
public class testStudent extends BaseHibernateDAOImpl {
    public static void main(String[] args){
        oneToManyTest mto=new oneToManyTest();
        mto.testManyToOne();
    }
    public void testManyToOne(){
        StudentEntity studentEntity=(StudentEntity)super.get(StudentEntity.class,"2011001001");
        //StudentDAO studentDAO=new StudentDAOImpl();
        System.out.println(studentEntity.getStuname());
    }
}